package com.cb.dao;

import com.cb.pojo.*;
import org.apache.ibatis.annotations.Param;
import org.apache.kafka.common.protocol.types.Field;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Component
public interface UserFilmDao {

    List<Film> selectFilm();

    List<Film> selectFilmName(String name);

    List<Film> selectFilmCountriesTypeMarkettime(@Param("countries")String countries,@Param("type")String type,@Param("markettime")String markettime);

    List<Film> selectFilmComingSoonTime(@Param("countries")String countries,@Param("type")String type,@Param("markettime")String markettime);

    List<Film> selectFilmHot(@Param("countries")String countries,@Param("type")String type,@Param("dateStart")String dateStart,@Param("dateEnd") String dateEnd);

    Film selectFilmName1(String name);

    Film selectFilmDetail(String id);

    List<Cinema> selectFilmcityandCinema(@Param("nowdate") Date nowdate, @Param("city") String city, @Param("ypid") String ypid);

    int insertFilmeValuation(FilmeValuation filmeValuation);

    List<Cinema> selectCityCinema(String city);

    Cinema selectCityCinemaName(@Param("city") String city, @Param("yyname") String yyname);

    OrderList refund(String ddid);

    Date selectDdidTime(String id);

    List<ScreeninFormation> yyidSelectsi(@Param("yyid") String yyid, @Param("nowtime") Date nowtime, String ypid);

    Film yyidSelectsiYyid(String yyid ,String ypid);

    int updateOrderList(@Param("ccid") String ccid, @Param("status") String status, @Param("statustime") Date statustime, @Param("refundfee") double refundfee, @Param("id") String id);

    List<FilmeValuation> selectAllFilmeValuation(String ypid);

    Cinema cinemaDetails(String yyid);

    ScreeninFormation filmeSeatDetails(int id);

    List<ScreeninFormation> SeatTest();

    int insertScreenInformation(@Param("list") String list,@Param("id") int id);

    double selectFilmPrice(String ypid);

    int updateOrderList1(String status,String id);
}
